#ifndef PROJECTNEWDLG_HXX
#define PROJECTNEWDLG_HXX

#include <QDialog>
#include <QLineEdit>
#include <QComboBox>
#include <QPushButton>
#include <QLabel>
#include <QSpinBox>
#include <QString>

enum VideoType
{
    VT_VIDEO = 0,
    VT_IMAGE_SEQUENCE
};

struct VideoInfo
{
    QString VideoName;
    QString VideoFile;
    int FrameStrip;
    VideoType VideoType;

    VideoInfo()
    {
        VideoName = "VideoName";
        VideoFile = "";
        FrameStrip = 1;
        VideoType = VideoType::VT_VIDEO;
    }
};

Q_DECLARE_METATYPE(VideoInfo*)

class VideoNewDialog : public QDialog
{
    Q_OBJECT
public:
    VideoNewDialog();

    inline void setVideoInfo(VideoInfo* vi) { _videoInfo = vi; }

public slots:
    void onBtnAdd();
    void onBtnCancel();
    void onBtnVideoFile();

private:
    QLineEdit* _edtVideoName;
    QLabel* _lblVideoFile;
    QComboBox* _cbVideoType;
    QSpinBox* _sbFrameStrip;
    QPushButton* _btnVideoFile;
    QPushButton* _btnAdd;
    QPushButton* _btnCancel;

    VideoInfo* _videoInfo;
};

#endif // PROJECTNEWDLG_HXX
